import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 查询备件销售结算情况
export const getSalessettlementList = params => axios.get(`${SERVER.SEARCH_DMSCLOUD_PART}/query/part/sales/list`, { params });
// 查询查看
export const getSaleOrderDetailList = params => axios.post(`${SERVER.DMSCLOUD_PART}/query/part/sales/info`, params);
// 查询查看发票
export const getInvoiceDetailList = params => axios.get(`${SERVER.DMSCLOUD_PART}/query/part/sales/invoice`, { params });
// 查询查看收款
export const getItemDetailList = params => axios.get(`${SERVER.DMSCLOUD_PART}/query/part/sales/item`, { params });
// 查询查看记录
export const getRecordDetailList = params => axios.get(`${SERVER.DMSCLOUD_PART}/query/part/sales/record`, { params });
// 明细
export const querySalesQutationDetail = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/ttSalesQuote/querySalesQutationDetail/${params.orderNo}`, { params });
// 发票查询
export const queryInvoice = params => axios.get(`${SERVER.DMSCLOUD_FINANCE}/basedata/gatheringManage/QueryInvoice/part/${params.balanceNo}`, { params });
// 通过备件销售单号查新备件明细
export const partSalesItem = params =>
  axios.get(`${SERVER.DMSCLOUD_PART}/basedata/ttSalesPart/item/${params.orderNo}`, {
    params
  });
